package day011.homework.p3;

public class Circle implements ShapePara {
    public static final double PI = 3.14;
    public double radius;
    private double x;
    protected double y;

    public Circle(double radius) {
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }

    public void setCenter(double x, double y) {
        this.x = x;
        this.y = y;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    @Override
    public void getArea() {
        double area = PI * radius * radius;
        System.out.println("圆面积为：" + area);
    }

    @Override
    public void getCircumference() {
        double circumference = 2 * PI * radius;
        System.out.println("圆周长为：" + circumference);
    }
}
